package com.pithypan.convert;


import com.pithypan.entity.FileShare;
import com.pithypan.vo.FileShareVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 使用前先在pom.xml文件引入MapStruct依赖
 * FileShare To FileShareVo
 */
@Mapper
public interface FileShareConvert {    //对象属性的映射（vo对象和dto对象之间的相同属性才会进行映射）

    FileShareConvert INSTANCE = Mappers.getMapper(FileShareConvert.class);


    FileShare vo2entity(FileShareVo fileShareVo);

    FileShareVo entity2vo(FileShare fileShare);

}
